<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/1/16 0016
 * Time: 下午 5:44
 */

namespace backend\assets;


use common\components\GlobalUrlComponent;
use yii\web\AssetBundle;

class EditableAsset extends AssetBundle
{
    public $baseUrl = '';

    public $css = [
        'plugins/bower_components/jquery-datatables-editable/datatables.css'
    ];
    public $js = [
        'plugins/bower_components/jquery-datatables-editable/jquery.dataTables.js',
        'plugins/bower_components/datatables/dataTables.bootstrap.js',
        'plugins/bower_components/tiny-editable/mindmup-editabletable.js',
        'plugins/bower_components/tiny-editable/numeric-input-example.js'
    ];
    public $depends = [
        AppAsset::class
    ];

    public function __construct(array $config = [])
    {
        $this->baseUrl = GlobalUrlComponent::buildStaticUrl('/');
        parent::__construct($config);
    }
}